package com.xinqi.modules.chat.chat.friend.dto.req;

import com.xinqi.common.green.annotation.Text;
import com.xinqi.modules.chat.enums.apply.FriendApplyComnonEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 添加申请好友-请求对象
 *
 * @author: system
 * @date: 2023/01/12
 */
@Data
@Schema(description = "添加申请好友")
public class ChatFriendApplyCreateDTO implements Serializable {

    @Schema(description = "接收人ID")
    @NotNull(message = "{chat.friend.apply.receverId.not.blank}")
    private Long receverId;

    @Text
    @Schema(description = "重命名")
    @Size(min = 0, max = 15, message = "{chat.friend.apply.renames.length.valid}")
    private String renames;

    @Schema(description = "1是新奇号，2是手机号，3扫码添加，4课程板块信息添加,5群聊添加")
    @NotNull(message = "{chat.friend.apply.comnon.not.blank}")
    private FriendApplyComnonEnum comnon;

    @Text
    @Schema(description = "内容")
    @NotEmpty(message = "{chat.friend.apply.content.not.blank}")
    @Size(min = 0, max = 60, message = "{chat.friend.apply.content.length.valid}")
    private String content;

    @Schema(title = "操作用户ID(内部流转参数，不对外)", hidden = true)
    private Long operationUserId;
}
